package com.example.list.lazyload;

import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.Nullable;

import com.example.list.R;

import static android.content.ContentValues.TAG;

public class FragmentX3 extends BaseLazyFragment {
    View view;



    @Override
    protected void initPrepare() {
        Log.d(TAG, "initPrepare: ");
    }

    @Override
    protected void onInvisible() {
        Log.d(TAG, "onInvisible: ");
    }

    @Override
    protected void initData() {
        Log.d(TAG, "initData: "+getClass().getSimpleName());

    }

    @Override
    protected View initView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

        if (view == null) {
            view = inflater.inflate(R.layout.layout_lazy_fragment, container, false);
        }
        return view;
    }

}
